<?php
/**
 * Created by PhpStorm.
 * User: openoter
 * Date: 2018/12/9
 * Time: 14:23
 */

namespace app\admin\model;


use think\Model;

class Cadre extends Model {

    public function attendance() {
        return $this->hasMany('attendance', 'uid', 'id');
    }

    public function cls() {
        return $this->belongsTo('cls', 'class');
    }
}